OBJS = obj\path.obj obj\system.obj obj\archive.obj obj\io.obj
FLAGS = /DCOMPRESSION

all : release\packager.exe

obj\launcher.exe : obj\launcher.obj $(OBJS)
    cl /nologo $** user32.lib rpcrt4.lib shell32.lib /link /out:$@ /subsystem:windows

obj\packager.res : src\packager.rc obj\launcher.exe
	rc /fo $@ src\packager.rc

release\packager.exe : obj\packager.obj $(OBJS) obj\packager.res
    cl /nologo $** user32.lib rpcrt4.lib shell32.lib /link /out:$@ /subsystem:console

{src}.cc{obj}.obj:
    cl /nologo /EHsc /c /O2 /Fo$@ $(FLAGS) $**

